package com.hmall.pay.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.pay.domain.po.PayOrder;
import com.hmall.pay.domain.vo.PayOrderVO;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 支付订单 Mapper 接口
 * </p>
 *
 * @author 虎哥
 * @since 2023-05-16
 */
public interface PayOrderMapper extends BaseMapper<PayOrder> {

    @Select("select * from pay_order where biz_order_no = #{orderId}")
    PayOrder getByIdPayorderdto(Long orderId);
    @Update("update pay_order set status = 2 where biz_order_no = #{orderid}")
    void markPayOrderSuccess(Long orderid);
}
